package com.lmn;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class ProfileConfig {

    public static String cp = "11";
    public static String p1;

    @Bean
    @Profile("dev")
    public String dev() {
        p1 = "dev";
        return p1;
    }

    @Bean
    @Profile("prod")
    public String prod() {
        p1 = "prd";
        return p1;
    }
}
